import request from '@/utils/request'

// 查询生产退料单头列表
export function listRtissueother(query) {
  return request({
    url: '/wm/rtissueother/list',
    method: 'get',
    params: query
  })
}

// 查询生产退料单头详细
export function getRtissueother(rtId) {
  return request({
    url: '/wm/rtissueother/' + rtId,
    method: 'get'
  })
}

// 确认
export function confirmRt(rtId) {
  return request({
    url: '/wm/rtissueother/confirm/' + rtId,
    method: 'get'
  })
}
// 新增生产退料单头
export function addRtissueother(data) {
  return request({
    url: '/wm/rtissueother',
    method: 'post',
    data: data
  })
}

// 修改生产退料单头
export function updateRtissueother(data) {
  return request({
    url: '/wm/rtissueother',
    method: 'put',
    data: data
  })
}

// 删除生产退料单头
export function delRtissueother(rtId) {
  return request({
    url: '/wm/rtissueother/' + rtId,
    method: 'delete'
  })
}

export function execute(rtId) {
  return request({
    url: '/wm/rtissueother/' + rtId,
    method: 'put'
  })
}
// 查询模板信息列表
export function selectTree(query) {
  return request({
    url: '/xm/templateInfo/selectTree',
    method: 'get',
    params: query
  })
}
// 查询项目信息列表
export function processList(query) {
  return request({
    url: '/xm/projectInfo/processList',
    method: 'get',
    params: query
  })
}
